        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>ContactConstraintPoint class / box2d Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="box2d" data-type="ContactConstraintPoint">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../box2d.html">box2d</a> &rsaquo; <a href="../box2d/ContactConstraintPoint.html">ContactConstraintPoint</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
</div>
<div class="content">
        <h2><strong>ContactConstraintPoint</strong>
          class
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<pre class="source">
class ContactConstraintPoint {
 final vec2 localPoint;
 //TODO(gregbglw): Find out what rA and rB mean and change the names.
 final vec2 rA;
 final vec2 rB;

 num normalImpulse;
 num tangentImpulse;
 num normalMass;
 num tangentMass;
 num velocityBias;

 /** Constructs a new ContactConstraintPoint. */
 ContactConstraintPoint()
     : localPoint = new vec2.zero(),
       rA = new vec2.zero(),
       rB = new vec2.zero(),
       normalImpulse = 0,
       tangentImpulse = 0,
       normalMass = 0,
       tangentMass = 0,
       velocityBias = 0 {}

 /** Sets this point equal to the given point. */
 void setFrom(ContactConstraintPoint cp) {
   localPoint.copyFrom(cp.localPoint);
   rA.copyFrom(cp.rA);
   rB.copyFrom(cp.rB);
   normalImpulse = cp.normalImpulse;
   tangentImpulse = cp.tangentImpulse;
   normalMass = cp.normalMass;
   tangentMass = cp.tangentMass;
   velocityBias = cp.velocityBias;
 }

 String toString() {
   return "normal impulse: $normalImpulse, tangentImpulse: $tangentImpulse"
       ", normalMass: $normalMass, tangentMass: $tangentMass"
       ", velocityBias: $velocityBias, localPoint: $localPoint"
       ", rA: $rA, rB: $rB";
 }
}
</pre>
</div>
<div>
<h3>Constructors</h3>
<div class="method"><h4 id="ContactConstraintPoint">
<button class="show-code">Code</button>
new <strong>ContactConstraintPoint</strong>() <a class="anchor-link" href="#ContactConstraintPoint"
              title="Permalink to ContactConstraintPoint.ContactConstraintPoint">#</a></h4>
<div class="doc">
<p>Constructs a new ContactConstraintPoint. </p>
<pre class="source">
ContactConstraintPoint()
   : localPoint = new vec2.zero(),
     rA = new vec2.zero(),
     rB = new vec2.zero(),
     normalImpulse = 0,
     tangentImpulse = 0,
     normalMass = 0,
     tangentMass = 0,
     velocityBias = 0 {}
</pre>
</div>
</div>
</div>
<div>
<h3>Properties</h3>
<div class="field"><h4 id="localPoint">
<button class="show-code">Code</button>
final <a href="../vector_math/vec2.html">vec2</a>         <strong>localPoint</strong> <a class="anchor-link"
            href="#localPoint"
            title="Permalink to ContactConstraintPoint.localPoint">#</a>
        </h4>
        <div class="doc">
<pre class="source">
localPoint
</pre>
</div>
</div>
<div class="field"><h4 id="normalImpulse">
<button class="show-code">Code</button>
num         <strong>normalImpulse</strong> <a class="anchor-link"
            href="#normalImpulse"
            title="Permalink to ContactConstraintPoint.normalImpulse">#</a>
        </h4>
        <div class="doc">
<pre class="source">
normalImpulse
</pre>
</div>
</div>
<div class="field"><h4 id="normalMass">
<button class="show-code">Code</button>
num         <strong>normalMass</strong> <a class="anchor-link"
            href="#normalMass"
            title="Permalink to ContactConstraintPoint.normalMass">#</a>
        </h4>
        <div class="doc">
<pre class="source">
normalMass
</pre>
</div>
</div>
<div class="field"><h4 id="rA">
<button class="show-code">Code</button>
final <a href="../vector_math/vec2.html">vec2</a>         <strong>rA</strong> <a class="anchor-link"
            href="#rA"
            title="Permalink to ContactConstraintPoint.rA">#</a>
        </h4>
        <div class="doc">
<pre class="source">
rA
</pre>
</div>
</div>
<div class="field"><h4 id="rB">
<button class="show-code">Code</button>
final <a href="../vector_math/vec2.html">vec2</a>         <strong>rB</strong> <a class="anchor-link"
            href="#rB"
            title="Permalink to ContactConstraintPoint.rB">#</a>
        </h4>
        <div class="doc">
<pre class="source">
rB
</pre>
</div>
</div>
<div class="field"><h4 id="tangentImpulse">
<button class="show-code">Code</button>
num         <strong>tangentImpulse</strong> <a class="anchor-link"
            href="#tangentImpulse"
            title="Permalink to ContactConstraintPoint.tangentImpulse">#</a>
        </h4>
        <div class="doc">
<pre class="source">
tangentImpulse
</pre>
</div>
</div>
<div class="field"><h4 id="tangentMass">
<button class="show-code">Code</button>
num         <strong>tangentMass</strong> <a class="anchor-link"
            href="#tangentMass"
            title="Permalink to ContactConstraintPoint.tangentMass">#</a>
        </h4>
        <div class="doc">
<pre class="source">
tangentMass
</pre>
</div>
</div>
<div class="field"><h4 id="velocityBias">
<button class="show-code">Code</button>
num         <strong>velocityBias</strong> <a class="anchor-link"
            href="#velocityBias"
            title="Permalink to ContactConstraintPoint.velocityBias">#</a>
        </h4>
        <div class="doc">
<pre class="source">
velocityBias
</pre>
</div>
</div>
</div>
<div>
<h3>Methods</h3>
<div class="method"><h4 id="setFrom">
<button class="show-code">Code</button>
void <strong>setFrom</strong>(<a href="../box2d/ContactConstraintPoint.html">ContactConstraintPoint</a> cp) <a class="anchor-link" href="#setFrom"
              title="Permalink to ContactConstraintPoint.setFrom">#</a></h4>
<div class="doc">
<p>Sets this point equal to the given point. </p>
<pre class="source">
void setFrom(ContactConstraintPoint cp) {
 localPoint.copyFrom(cp.localPoint);
 rA.copyFrom(cp.rA);
 rB.copyFrom(cp.rB);
 normalImpulse = cp.normalImpulse;
 tangentImpulse = cp.tangentImpulse;
 normalMass = cp.normalMass;
 tangentMass = cp.tangentMass;
 velocityBias = cp.velocityBias;
}
</pre>
</div>
</div>
<div class="method"><h4 id="toString">
<button class="show-code">Code</button>
String <strong>toString</strong>() <a class="anchor-link" href="#toString"
              title="Permalink to ContactConstraintPoint.toString">#</a></h4>
<div class="doc">
<div class="inherited">
<p>Returns a string representation of this object.</p>
<div class="docs-inherited-from">docs inherited from Object </div></div>
<pre class="source">
String toString() {
 return "normal impulse: $normalImpulse, tangentImpulse: $tangentImpulse"
     ", normalMass: $normalMass, tangentMass: $tangentMass"
     ", velocityBias: $velocityBias, localPoint: $localPoint"
     ", rA: $rA, rB: $rB";
}
</pre>
</div>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        <div class="footer">
          
        </div>
        <script async src="../client-live-nav.js"></script>
        </body></html>
        
